<?php
namespace app\model;
use think\admin\Model;

use think\model\relation\HasMany;

/**
 * 课程章节
 * @class ProductChapter
 * @package app\model
 */
class ProductChapter extends Model
{
    protected $table = "hjz_product_chapter";

   
    public function product(){
        return $this->belongsTo(Product::class,'parent_id');
    }
}